package com.rockcent.mall.lib.domain;

import com.rockcent.common.domain.IDEntityMall;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by zhangjh on 2016/10/26.
 */
@Entity
@Table(name = "customer_detail")
@DynamicInsert
@DynamicUpdate
public class CustomerDetail extends IDEntityMall {
    @Column(columnDefinition = "bigint comment'用户ID'")
    private Long customerId;
    @Column(columnDefinition = "varchar(255) comment'性别'")
    private String gender;
    @Column(columnDefinition = "varchar(255) comment'用户头像url'")
    private String headImgUrl;
    @Column(columnDefinition = "varchar(255) comment'用户真实姓名'")
    private String realName;

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getHeadImgUrl() {
        return headImgUrl;
    }

    public void setHeadImgUrl(String headImgUrl) {
        this.headImgUrl = headImgUrl;
    }

    public String getRealName() {
        return realName;
    }

    public void setRealName(String realName) {
        this.realName = realName;
    }

    @Override
    public String toString() {
        return "CustomerDetail{" +
                "customerId=" + customerId +
                ", gender='" + gender + '\'' +
                ", headImgUrl='" + headImgUrl + '\'' +
                ", realName='" + realName + '\'' +
                '}';
    }
}
